package com.example.mvvm

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.mvvm.databinding.FragmentBindBinding

/**
 * https://github.com/android
 */
class BindFragment : Fragment() {
    private var binding: FragmentBindBinding? = null


    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        binding = view?.let { FragmentBindBinding.bind(it) }

        binding!!.tvShow.text = getString(R.string.hello_blank_fragment)
        return binding?.root
    }

    override fun onDestroyView() {
        binding = null
        super.onDestroyView()
    }


}